<template>
    <view class="content">
        <u-parse :html="content" :selectable="true"></u-parse>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                content: '',
                id: '',
            };
        },
        onLoad(option) {
            this.id = option.id
            this.getData()
        },
        methods: {
            getData() {
                this.$ajax('properties_detail', {
                    user_token: this.$getSync('userToken'),
                    id: this.id,//楼盘id
                }).then(ret => {
                    if (ret.success == 1000) {
                        this.content = ret.detail.rules
                    } else {
                        this.$toast(ret.msg);
                    }
                });
            },
        }
    };
</script>

<style lang="scss">
    page{
        background-color: #fff;
    }
    .content{
        border-top: 2rpx solid #e6e6e6;
        padding: 30rpx;
    }
    
</style>
